home *** CD-ROM | disk | FTP | other *** search
Wrap
ffffaaaattttttttaaaacccchhhh((((3333CCCC)))) ffffaaaattttttttaaaacccchhhh((((3333CCCC)))) NNNNAAAAMMMMEEEE _ffff_aaaa_tttt_tttt_aaaa_cccc_hhhh - attach a STREAMS-based file descriptor to an object in the filesystem name space SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>> _iiii_nnnn_tttt _ffff_aaaa_tttt_tttt_aaaa_cccc_hhhh_((((_iiii_nnnn_tttt _ffff_iiii_llll_dddd_eeee_ssss_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_pppp_aaaa_tttt_hhhh_))))_;;;; DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN The _ffff_aaaa_tttt_tttt_aaaa_cccc_hhhh routine attaches a STREAMS-based file descriptor to an object in the filesystem name space, effectively associating a name with _f_i_l_d_e_s. _f_i_l_d_e_s must be a valid open file descriptor representing a STREAMS file. _p_a_t_h is a pathname of an existing object, and the effective user ID of the calling process must be the owner of the file and have write permissions, or the calling process must have appropriate privilege (_PPPP______OOOO_WWWW_NNNN_EEEE_RRRR). All subsequent operations on _p_a_t_h will operate on the STREAMS file until the STREAMS file is detached from the node. _f_i_l_d_e_s can be attached to more than one _p_a_t_h; that is, a stream can have several names associated with it. The attributes of the named stream (see _ssss_tttt_aaaa_tttt(2)), are initialized as follows: the permissions, user ID, group ID, and times are set to those of _p_a_t_h, the number of links is set to 1, and the size and device identifier are set to those of the streams device associated with _f_i_l_d_e_s. If any attributes of the named stream are subsequently changed (for example, _cccc_hhhh_mmmm_oooo_dddd(2)), the attributes of the underlying object are not affected. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE If successful, _ffff_aaaa_tttt_tttt_aaaa_cccc_hhhh returns 0; otherwise it returns -1 and sets _eeee_rrrr_rrrr_nnnn_oooo to indicate an error. EEEERRRRRRRROOOORRRRSSSS Under the following conditions, the function _ffff_aaaa_tttt_tttt_aaaa_cccc_hhhh fails and sets _eeee_rrrr_rrrr_nnnn_oooo to: _EEEE_AAAA_CCCC_CCCC_EEEE_SSSS Search permission is denied on a component of the path prefix. _EEEE_AAAA_CCCC_CCCC_EEEE_SSSS The user is the owner of the filenamed by _p_a_t_h but does not have write permissions on _p_a_t_h or _f_i_l_d_e_s is locked. _EEEE_BBBB_AAAA_DDDD_FFFF _f_i_l_d_e_s is not a valid open file descriptor. _EEEE_NNNN_OOOO_EEEE_NNNN_TTTT _p_a_t_h does not exist. _EEEE_NNNN_OOOO_TTTT_DDDD_IIII_RRRR A component of a path prefix is not a directory. _EEEE_IIII_NNNN_VVVV_AAAA_LLLL _f_i_l_d_e_s does not represent a STREAMS file. PPPPaaaaggggeeee 1111 ffffaaaattttttttaaaacccchhhh((((3333CCCC)))) ffffaaaattttttttaaaacccchhhh((((3333CCCC)))) _EEEE_PPPP_EEEE_RRRR_MMMM The effective user ID of the calling process is not the owner of the filenamed by _p_a_t_h. _EEEE_BBBB_UUUU_SSSS_YYYY _p_a_t_h is currently a mount point or has a STREAMS file descriptor attached it. _EEEE_NNNN_AAAA_MMMM_EEEE_TTTT_OOOO_OOOO_LLLL_OOOO_NNNN_GGGG The size of _p_a_t_h exceeds _{{{{_PPPP_AAAA_TTTT_HHHH______MMMM_AAAA_XXXX_}}}}, or the component of a pathname is longer than _{{{{_NNNN_AAAA_MMMM_EEEE______MMMM_AAAA_XXXX_}}}} while _{{{{______PPPP_OOOO_SSSS_IIII_XXXX______NNNN_OOOO______TTTT_RRRR_UUUU_NNNN_CCCC_}}}} is in effect. _EEEE_LLLL_OOOO_OOOO_PPPP Too many symbolic links were encountered in translating _p_a_t_h. _EEEE_RRRR_EEEE_MMMM_OOOO_TTTT_EEEE _p_a_t_h is a file in a remotely mounted directory. SSSSEEEEEEEE AAAALLLLSSSSOOOO fdetach(1M), fdetach(3C), isastream(3C), streamio(7) PPPPaaaaggggeeee 2222